<?php
	//
	//This php will handle the 
	// UserFetch.java 
	// - fetchUserById function
	//
	
	//Connect to database
	include '../../dbc.php';
	
	$telephone = $_POST['telephone'];
	$name = $_POST['name'];
	$description = $_POST['description'];
	
	//Check is activated
    $query01 = "UPDATE user SET name='$name',description='$description' WHERE telephone = '$telephone'";
	if(mysql_query($query01)){
		$response["STATUS"] = "1";
		echo json_encode($response);
	}else{
		$response["STATUS"] = "0";
		echo json_encode($response);
	}
?>